package com.qianyu.project.core.api;

import com.qianyu.project.core.service.IFlowNodeService;
import com.qianyu.project.utils.Result;
import com.qianyu.project.utils.ResultTool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author mfy
 * @desc
 */
@RestController
@RequestMapping("flownodes")
public class FlowNodeController {

    @Autowired
    private IFlowNodeService iFlowNodeService;

    @GetMapping("{flowId}")
    public Result getListByFlowId(@PathVariable Integer flowId){
        return ResultTool.success(iFlowNodeService.getListByFlowId(flowId));
    }

}
